package edu.zut.hb.ambition.hospitalization.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HospitalizationMapper;
import com.ruoyi.system.domain.Hospitalization;

@Service
public class HospitalizationServiceImpl implements IHospitalizationService
{
    @Autowired
    private HospitalizationMapper hospitalizationMapper;


    @Override
    public Hospitalization selectHospitalizationByZhuyuanid(Long zhuyuanid)
    {
        return hospitalizationMapper.selectHospitalizationByZhuyuanid(zhuyuanid);
    }


    @Override
    public List<Hospitalization> selectHospitalizationList(Hospitalization hospitalization)
    {
        return hospitalizationMapper.selectHospitalizationList(hospitalization);
    }


    @Override
    public int insertHospitalization(Hospitalization hospitalization)
    {
        return hospitalizationMapper.insertHospitalization(hospitalization);
    }


    @Override
    public int updateHospitalization(Hospitalization hospitalization)
    {
        return hospitalizationMapper.updateHospitalization(hospitalization);
    }


    @Override
    public int deleteHospitalizationByZhuyuanids(Long[] zhuyuanids)
    {
        return hospitalizationMapper.deleteHospitalizationByZhuyuanids(zhuyuanids);
    }


    @Override
    public int deleteHospitalizationByZhuyuanid(Long zhuyuanid)
    {
        return hospitalizationMapper.deleteHospitalizationByZhuyuanid(zhuyuanid);
    }
}
